package top.xmj.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author 冰咖啡
 * Date:7/12/2022 下午 2:47
 * Description:
 */

public class DateFormatUtils {

    public static String getDate(Date date, String pattern){
        SimpleDateFormat sdf = new SimpleDateFormat(pattern);
        return sdf.format(date);
    }

}
